


<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/loginredirect.jsp"%>
<head>
    <title><fmt:message key="userProfile.title"/></title>
    <meta name="heading" content="<fmt:message key='userProfile.heading'/>"/>
    <meta name="menu" content="UserMenu"/>
    <script type="text/javascript" src="<c:url value='/scripts/selectbox.js'/>"> </script>
</head>



<form:form commandName="userInstitutionsForm2" method="post" action="userinstitutions"  id="userInstitutionsForm2">
<form:hidden path="user.id"/>


<ul>
    <li>
        <appfuse:label styleClass="desc" key="field.name"/>
        <form:input path="user.lastName" disabled="true" id="name" cssClass="text medium " cssErrorClass="input-medium left error" maxlength="1000"/>
        <form:errors path="user.lastName" cssClass="fieldError left"/>
      
        </li>
        
        <li>
        <appfuse:label styleClass="desc" key="field.name"/>
        <form:input path="user.firstName" id="name" disabled="true"  cssClass="text medium " cssErrorClass="input-medium left error" maxlength="1000"/>
        <form:errors path="user.firstName" cssClass="fieldError left"/>
      
        </li>
        
        <li>
        <appfuse:label styleClass="desc" key="field.name"/>
        <form:input path="user.username" id="name" disabled="true"  cssClass="text medium " cssErrorClass="input-medium left error" maxlength="1000"/>
        <form:errors path="user.username" cssClass="fieldError left"/>
      
        </li> <br />
    <li>
        <fieldset class="pickList" id="userInstitutionsForm2" >
            <legend><fmt:message key="user.Institutions"/></legend>
            <table class="pickList">
                <tr>
                    <th class="pickLabel">
                        <appfuse:label key="user.institutions" colon="false" styleClass="required"/>
                    </th>
                    <td></td>
                    <th class="pickLabel">
                        <appfuse:label key="user.roles" colon="false" styleClass="required"/>
                    </th>
                </tr>
                <c:forEach  var="leftList" items="${userInstitutionsForm2.institutions}" >
                    <c:out value="${leftList.institutionName}" /> <br />
                </c:forEach>
               <%-- <c:set var="leftList"  value="${userInstitutionsForm2.institutions}" scope="request"  />
                <c:set var="rightList" value="" scope="request"/>--%>
                <c:import url="/WEB-INF/pages/pickList.jsp">
                  <c:param name="listCount" value=""/>
                    <c:param name="leftId" value="institutions"/>
                <%--    <c:param name="rightId" value="roles"/>
              --%></c:import>
            </table>
        </fieldset>
    </li>



    <li class="buttonBar bottom">
      <input type="submit" class="button" name="save" onclick="bCancel=false" value="<fmt:message key="button.save"/>"/>

      <c:if test="${param.from == 'list' and param.method != 'Add'}">
          <input type="submit" class="button" name="delete" onclick="bCancel=true;return confirmDelete('user')"
              value="<fmt:message key="button.delete"/>"/>
      </c:if>

      <input type="submit" class="button" name="cancel" onclick="bCancel=true" value="<fmt:message key="button.cancel"/>"/>
    </li>
</ul>
</form:form>

<script type="text/javascript">
    Form.focusFirstElement($('userForm'));
    highlightFormElements();
</script>

<v:javascript formName="user" staticJavascript="false"/>
<script type="text/javascript" src="<c:url value="/scripts/validator.jsp"/>"></script>





